import request from '@/utils/request'

/**
 * @param {预警查询-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getEarlyWarningList
 * @method {post}
 * @param {string} warnnm  预警名称
 * @param {string} adcd  行政区编码
 * @param {string} warntypeid  预警类型
 * @param {string} warngradeid 预警等级
 * @param {string} warnstm     预警时间
 * @param {string} warnstmEnd  预警结束时间
 * @param {string} pageIndex   当前页
 * @param {string} pageSize    当前页条数
 * 
 */
export function getEarlyWarningList(data) {
  return request({
    url: '/zy-api/api/earlyWarning/getEarlyWarningList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预警查询-预警记录查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getEarlyWarningId
 * @method {post}
 * @param {string} warnid 预警id
 * 
 */
export function getEarlyWarningId(data) {
  return request({
    url: '/zy-api/api/earlyWarning/getEarlyWarningId',
    method: 'post',
    data: data
  })
};

/**
 * @param {预警查询-预警记录列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getReservoirList
 * @method {post}
 * @param {string} warnid  预警id
 * @param {string} pageIndex   当前页
 * @param {string} pageSize    当前页条数
 * 
 */
export function getReservoirList(data) {
  return request({
    url: '/zy-api/api/earlyWarning/getReservoirList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预警查询-预警原因} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getEarlyWarningReasonList
 * @method {post}
 * @param {string} warnid  预警id
 * @param {string} pageIndex   当前页
 * @param {string} pageSize    当前页条数
 * 
 */
export function getEarlyWarningReasonList(data) {
  return request({
    url: '/zy-api/api/earlyWarning/getEarlyWarningReasonList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预警查询-预警发送} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getEarlyWarningSendList
 * @method {post}
 * @param {string} warnid  预警id
 * @param {string} pageIndex   当前页
 * @param {string} pageSize    当前页条数
 * 
 */
export function getEarlyWarningSendList(data) {
  return request({
    url: '/zy-api/api/earlyWarning/getEarlyWarningSendList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预警等级} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getWarngradeid
 * @method {post}
 * 
 */
export function getWarngradeid() {
  return request({
    url: '/zy-api/api/earlyWarning/getWarngradeid',
    method: 'post',
    data: {}
  })
};

/**
 * @param {预警类型} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/earlyWarning/getWarntypeid
 * @method {post}
 * 
 */
export function getWarntypeid() {
  return request({
    url: '/zy-api/api/earlyWarning/getWarntypeid',
    method: 'post',
    data: {}
  })
};

/**
 * @param {区县预警统计-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/countyWarningStatistics/getCountyWarningStatisticsList
 * @method {post}
 * @param {string} stm  开始时间
 * @param {string} etm  	结束时间
 * @param {string} adcd  行政区划代码
 * @param {int} pageIndex   当前页
 * @param {int} pageSize    当前页条数
 * 
 */
export function getCountyWarningStatisticsList(data) {
  return request({
    url: '/zy-api/api/countyWarningStatistics/getCountyWarningStatisticsList',
    method: 'post',
    data: data
  })
};

/**
 * @param {区县预警统计-行政区划查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/countyWarningStatistics/getCountyWarningAdcd
 * @method {post}
 * 
 */
export function getWaterSource() {
  return request({
    url: '/zy-api/api/countyWarningStatistics/getCountyWarningAdcd',
    method: 'post',
    data: {}
  })
};

/**
 * @param {响应查询-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/respondQuery/getRespondQueryList
 * @method {post}
 * @param {string} respgradeid  响应等级id
 * @param {string} adcd  行政区划代码
 * @param {int} pageIndex   当前页
 * @param {int} pageSize    当前页条数
 * 
 */
export function getRespondQueryList(data) {
  return request({
    url: '/zy-api/api/respondQuery/getRespondQueryList',
    method: 'post',
    data: data
  })
};

/**
 * @param {响应查询-相关预警记录} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/respondQuery/getRespondQueryRecordList
 * @method {post}
 * @param {string} respgradeid  响应等级id
 * @param {int} pageIndex   当前页
 * @param {int} pageSize    当前页条数
 * 
 */
export function getRespondQueryRecordList(data) {
  return request({
    url: '/zy-api/api/respondQuery/getRespondQueryRecordList',
    method: 'post',
    data: data
  })
};

/**
 * @param {响应查询-预警响应反馈} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/respondQuery/getRespondQueryBackList
 * @method {post}
 * @param {string} respgradeid  响应等级id
 * @param {int} pageIndex   当前页
 * @param {int} pageSize    当前页条数
 * 
 */
export function getRespondQueryBackList(data) {
  return request({
    url: '/zy-api/api/respondQuery/getRespondQueryBackList',
    method: 'post',
    data: data
  })
};

/**
 * @param {响应查询-响应等级查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/respondQuery/getCountyWarningAdcd
 * @method {post}
 * 
 */
export function getCountyWarningAdcd() {
  return request({
    url: '/zy-api/api/respondQuery/getCountyWarningAdcd',
    method: 'post',
    data: {}
  })
};

/**
 * @param {响应反馈查询-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/responseFeedback/getResponseFeedbackList
 * @method {post}
 * @param {string} fbstm 起始时间 （默认传 null）
 * @param {string} fbetm 结束时间 （默认传 null）
 * @param {string} adcd  行政区划代码
 * @param {int} pageIndex   当前页
 * @param {int} pageSize    当前页条数
 * 
 */
export function getResponseFeedbackList(data) {
  return request({
    url: '/zy-api/api/responseFeedback/getResponseFeedbackList',
    method: 'post',
    data: data
  })
};


/**
 * @param {响应反馈查询-行政区划查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/countyWarningStatistics/getCountyWarningAdcd
 * @method {post}
 * 
 */
export function getCountyAdcd(data) {
  return request({
    url: '/zy-api/api/countyWarningStatistics/getCountyWarningAdcd',
    method: 'post',
    data: data
  })
};
